/// list : [{"id":"57","nickName":"会员.8dgid","phone":"19907136287","userId":1547171271555522572,"createTime":1658228864,"updateTime":1658228890,"content":"sdafy8"}]
/// pageCurrent : 1
/// pageSize : 10
/// total : 10
/// hasNext : false
/// pages : 0

class CommentListEntity {
  CommentListEntity({
      this.list, 
      this.pageCurrent, 
      this.pageSize, 
      this.total, 
      this.hasNext, 
      this.pages,});

  CommentListEntity.fromJson(dynamic json) {
    if (json['list'] != null) {
      list = [];
      json['list'].forEach((v) {
        list?.add(CommentEntity.fromJson(v));
      });
    }
    pageCurrent = json['pageCurrent'];
    pageSize = json['pageSize'];
    total = json['total'];
    hasNext = json['hasNext'];
    pages = json['pages'];
  }
  List<CommentEntity>? list;
  int? pageCurrent;
  int? pageSize;
  int? total;
  bool? hasNext;
  int? pages;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (list != null) {
      map['list'] = list?.map((v) => v.toJson()).toList();
    }
    map['pageCurrent'] = pageCurrent;
    map['pageSize'] = pageSize;
    map['total'] = total;
    map['hasNext'] = hasNext;
    map['pages'] = pages;
    return map;
  }

}

/// id : "57"
/// nickName : "会员.8dgid"
/// phone : "19907136287"
/// userId : 1547171271555522572
/// createTime : 1658228864
/// updateTime : 1658228890
/// content : "sdafy8"

class CommentEntity {
  CommentEntity({
      this.id, 
      this.nickName, 
      this.phone, 
      this.userId, 
      this.createTime, 
      this.updateTime, 
      this.content,});

  CommentEntity.fromJson(dynamic json) {
    id = json['id'];
    nickName = json['nickName'];
    phone = json['phone'];
    userId = json['userId'];
    createTime = json['createTime'];
    updateTime = json['updateTime'];
    content = json['content'];
  }
  String? id;
  String? nickName;
  String? phone;
  int? userId;
  int? createTime;
  int? updateTime;
  String? content;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['nickName'] = nickName;
    map['phone'] = phone;
    map['userId'] = userId;
    map['createTime'] = createTime;
    map['updateTime'] = updateTime;
    map['content'] = content;
    return map;
  }

}